﻿using System.Modules.SharePoint.Constants;
using System.Modules.SharePoint.Contracts.Enums;

namespace System.Modules.SharePoint.Contracts.DTO
{
    /// <summary>
    /// SPQueryListProperty
    /// </summary>
    public class SPQueryListProperty : SPQueryViewField
    {
        #region Properties
        /// <summary>
        /// Name
        /// </summary>
        public SPQueryListPropertyName Name { get; set; }
        #endregion

        #region Methods
        public override string ToString()
        {
            return string.Format(SPQueryTemplates.LIST_PROPERTY, Name);
        }
        #endregion
    }
}
